package com.winning.vsts.merge.service.entity;

import com.alibaba.fastjson.JSONObject;
import com.winning.vsts.merge.service.domain.VstsProject;

import java.io.Serializable;
import java.util.Set;

/**
 * 合并请求数据
 *
 * @author xcl <xcl@winning.com.cn>
 * @date 2021/11/18
 */
public class PullRequestDO implements Serializable {
    private static final long serialVersionUID = -7737053357900693496L;

    /**
     * 项目信息
     */
    private VstsProject vstsProject;

    /**
     * vsts 请求id
     */
    private String pullRequestId;
    /**
     * 每次合并的批次号
     */
    private String pullNo;

    /**
     * commit 数量
     */
    private int commitCount;
    /**
     * PR请求数量
     */
    private int prCommitCount;
    /**
     * 工作项
     */
    private Set<String> worksItemIds;
    /**
     * 请求参数
     */
    private JSONObject request;

    /**
     * 源分支
     */
    private String sourceBranch;
    /**
     * 目标分支
     */
    private String targetBranch;


    public VstsProject getVstsProject() {
        return vstsProject;
    }

    public void setVstsProject(VstsProject vstsProject) {
        this.vstsProject = vstsProject;
    }

    public String getPullRequestId() {
        return pullRequestId;
    }

    public void setPullRequestId(String pullRequestId) {
        this.pullRequestId = pullRequestId;
    }

    public String getPullNo() {
        return pullNo;
    }

    public void setPullNo(String pullNo) {
        this.pullNo = pullNo;
    }

    public int getCommitCount() {
        return commitCount;
    }

    public void setCommitCount(int commitCount) {
        this.commitCount = commitCount;
    }

    public int getPrCommitCount() {
        return prCommitCount;
    }

    public void setPrCommitCount(int prCommitCount) {
        this.prCommitCount = prCommitCount;
    }

    public Set<String> getWorksItemIds() {
        return worksItemIds;
    }

    public void setWorksItemIds(Set<String> worksItemIds) {
        this.worksItemIds = worksItemIds;
    }

    public JSONObject getRequest() {
        return request;
    }

    public void setRequest(JSONObject request) {
        this.request = request;
    }

    public String getSourceBranch() {
        return sourceBranch;
    }

    public void setSourceBranch(String sourceBranch) {
        this.sourceBranch = sourceBranch;
    }

    public String getTargetBranch() {
        return targetBranch;
    }

    public void setTargetBranch(String targetBranch) {
        this.targetBranch = targetBranch;
    }
}
